package it.infodea.tapestrydea.support;

public class DeaEventConstants {

	/**
	 * Event triggered when an create or update of CRUD mode is request. The component
	 * event handler will be passed the element to create.
	 */
	public static final String SAVE = "save";

	/**
	 * Event triggered when an confirmation operation is request.
	 */
	public static final String CONFIRM = "confirm";

	/**
	 * Event triggered on form failure event (when there are errors in the
	 * validation tracker). The component event handler will be passed the
	 * element.
	 */
	public static final String FAILURE = "failure";

	/**
	 * Event triggered when an cancel operation is request.
	 */
	public static final String CANCEL = "cancel";

	/**
	 * Event triggered on form validation event. Event handler for this event
	 * must return an error message string in order to invalidate the
	 * submission.
	 */
	public static final String VALIDATE = "validate";
	
	/**
	 * Event triggered on setup render. The event isn't triggered in case of error.
	 */
	public static final String SETUP = "setup";

}
